package cn.wolfcode.trip.base.service;


import cn.wolfcode.trip.base.domain.Browse;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.Travelcontent;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {

    PageInfo<Travel> query(QueryObject queryObject);

    void saveOrUpdate(Travel travel);

    Travel get(Long id);

    Travelcontent getContent(Long id);

    void changeState(Long id, Integer state);

    Browse getBrowse(Long id);

    void saveOrUpdateBrowse(Travel travel);

    List<Travel> queryForBrowse(Long id);
}
